<?php

namespace app\admin\validate;

use think\Validate;

class Login extends Validate
{

    protected $rule =   [
        'name'  => 'require|token',
        'password' => 'require',
        // 'token' => 'token',
        'code'=>'require|captcha'
    ];
    
    protected $message  =   [
        'name.require' => '名称必须',
        'token.require'     => 'token必须',
        'password.require'   => '密码必须',
        'code.require'=>'验证码必须',
        'code.captcha'=>'验证码错误'
    ];
}
